//
//  UIView+YNPageExtend.h
//  YNPageViewController
//
//  Created by ZYN on 2018/4/22.
//  Copyright © 2018年 yongneng. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kYNPAGE_SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)

#define kYNPAGE_SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define kYNPAGE_NAVHEIGHT [UIView at_naviBar]

#define kYNPAGE_TABBARHEIGHT ([UIView at_tabBar] + 49)

#define kLESS_THAN_iOS11 ([[UIDevice currentDevice].systemVersion floatValue] < 11.0 ? YES : NO)

@interface UIView (YNPageExtend)

@property (nonatomic, assign) CGFloat yn_x;

@property (nonatomic, assign) CGFloat yn_y;

@property (nonatomic, assign) CGFloat yn_width;

@property (nonatomic, assign) CGFloat yn_height;

@property (nonatomic, assign) CGFloat yn_bottom;
/// iPhone_X 44,other 20
+ (CGFloat)at_statusBar;

/// iPhone_X 88,other 64
+ (CGFloat)at_naviBar;

/// iPhone_X 34,other 0
+ (CGFloat)at_tabBar;
@end
